package com.cw2.creatation.builder.simplebuilder;

public class MainTest {
    public static void main(String[] args) {
        XiaoMiPhone xiaoMiPhone = new XiaoMiPhone();
        xiaoMiPhone.setCpu("cpu");
        xiaoMiPhone.setCam("1亿");
        xiaoMiPhone.setDisk("1t");
        xiaoMiPhone.setMem("1t");
        Phone phone = xiaoMiPhone.buildPhone();
        System.out.println(phone.toString());
    }
}
